package com.zh.dao;

import com.zh.po.UserProduct;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface UserProductMapper extends Mapper<UserProduct> {
    int deleteByUserId(@Param("userId") Integer userId,@Param("productId")Integer productId);

    int updateCart(@Param("userId")Integer userId, @Param("productId")Integer productId, @Param("productBuyNum")Integer productBuyNum,@Param("subtotal") Double subtotal);
}
